---
title: Same Minor
sidebar:
  badge: New
---

import { Badge } from "@astrojs/starlight/components";
import Packages from "@partials/group-config/packages.mdx";
import Dependencies from "@partials/group-config/dependencies.mdx";
import DependencyTypes from "@partials/group-config/dependency-types.mdx";
import SpecifierTypes from "@partials/group-config/specifier-types.mdx";
import Label from "@partials/group-config/label.mdx";
import Details from "@site/components/details.astro";

Ensure that all instances of dependencies in this group have the same `MAJOR.MINOR` version number, while allowing different patch versions. The only Semver Ranges which are allowed are exact and `~`.

## Configuration

### policy <Badge text="Required" variant="danger" />

Set the policy to "sameMinor" to enable this behaviour for a Version Group.

```json title=".syncpackrc.json"
{
  "versionGroups": [
    {
      "dependencies": ["react", "react-dom"],
      "policy": "sameMinor"
    }
  ]
}
```

### dependencies <Badge text="Optional" variant="note" />

<Dependencies />

### dependencyTypes <Badge text="Optional" variant="note" />

<DependencyTypes />

### specifierTypes <Badge text="Optional" variant="note" />

<SpecifierTypes />

### label <Badge text="Optional" variant="note" />

<Label />

### packages <Badge text="Optional" variant="note" />

<Packages />
